package cn.edu360.day08.bean;

import org.jsoup.nodes.Document;

/**
 * 当前页面的描述
 * 存放当前页面的document信息，下一页的url地址，是否有下一页
 */
public class Page {
    private Document document;
    private String url;
    private boolean hasNextPage;

    @Override
    public String toString() {
        return "Page{" +
                "document=" + document +
                ", url='" + url + '\'' +
                ", hasNextPage=" + hasNextPage +
                '}';
    }

    public Document getDocument() {
        return document;
    }

    public void setDocument(Document document) {
        this.document = document;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public boolean isHasNextPage() {
        return hasNextPage;
    }

    public void setHasNextPage(boolean hasNextPage) {
        this.hasNextPage = hasNextPage;
    }
}
